<?php 
  require_once('Admin/Common/template/inc_admin.php');

   $cid = $_GET['id'];
   
   $sql = "select * from comments where cid='$cid'";  
    
   $result = mysql_query($sql) or die('查询失败！'.mysql_error());
   $row = mysql_fetch_assoc($result);
   //var_dump($row);   
   $cid = $row['cid'];
   $comment = $row['comment'];

   $uid= $row['uid'];
 
?>


   <div id="content">
     <div class="inner" style="min-height:1200px;">
       <div class="row">
         <div class="col-xs-12">

<h3>修改评价信息</h3>
<form method="post"  class="form-horizontal" action="admin.php?c=comments&m=updatecomments"  enctype="multipart/form-data">
  <input type="hidden" name="id" value=<?php  echo $cid;  ?>>  

<!-- <div class="form-group">
    <label for="cid" class="col-md-2 control-label">序号</label>
    <div class="col-md-10">
   <input type="text" class="form-control" id="cid" readonly="readonly" name="cid" value=<?php  echo $cid;  ?>>
   </div>
</div> -->

<div class="form-group">
    <label  class="col-md-2 control-label">评价内容</label>
<div class="col-md-10">    
    <textarea name="comment" class="form-control" cols="40" rows="5"><?php  echo $comment;  ?></textarea>
</div>
</div>


  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
    <input type="submit"  class="btn btn-success" value="更新">
    </div>
  </div>

</form>
                                

                    </div>
                </div>
                <hr />
            </div>
        </div>
                <script src="assets/plugins/jquery-2.0.3.min.js"></script>
        <script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>
        <script src="assets/plugins/modernizr-2.6.2-respond-1.1.0.min.js"></script>
       <!--END PAGE CONTENT -->












